import pages from '@/views/pages'

const routes: any = []

for (const key of Object.keys(pages)) {
  routes.push({
    path: `/${key}`,
    component: () => import('@/views/' + pages[key].replace('./', '')),
  })
}

export default routes
